package com.bootdo.system.controller;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description TODO
 * @Author GuoShao
 * @Date 2018/12/9 15:25
 * @Version 1.0
 **/
public class AdvertisingIndentBo extends BaseRowModel {

    @ExcelProperty(value = {"广告编号"},index = 0)
    private String id;
    // 交易类型:1 买入 2卖出
    private Integer tradeType;
    @ExcelProperty(value = {"交易类型"},index = 1)
    //交易类型（导出时使用）
    private String tradeTypeStr;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getTradeType() {
        return tradeType;
    }

    public void setTradeType(Integer tradeType) {
        this.tradeType = tradeType;
    }

    public String getTradeTypeStr() {
        return tradeTypeStr;
    }

    public void setTradeTypeStr(String tradeTypeStr) {
        this.tradeTypeStr = tradeTypeStr;
    }

    public static List<AdvertisingIndentBo> getList(){
        List<AdvertisingIndentBo> list = new ArrayList<>();
       AdvertisingIndentBo bo = new AdvertisingIndentBo();
        bo.setId("1");
        bo.setTradeType(2);
        bo.setTradeTypeStr("3");
        list.add(bo);

        AdvertisingIndentBo bo2 = new AdvertisingIndentBo();
        bo2.setId("2");
        bo2.setTradeType(3);
        bo2.setTradeTypeStr("4");
        list.add(bo2);
        return list;
    }
}
